package blow.sky.quoted.dao;

import blow.sky.quoted.entity.QuoteResponse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Component
@Transactional
public interface ResponseDao extends JpaRepository<QuoteResponse, Long>
{
    List<QuoteResponse> findAllByToRequestId(Long id);

    List<QuoteResponse> findAllByFromUser(String user);
}
